/*
 * @Author: HeAo
 * @Date: 2022-09-16 14:12:51
 * @LastEditTime: 2022-09-16 15:08:11
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \第二阶段\ES6\day04迭代器\5-数值拓展.js
 * 别乱动！
 */
// Number.isFinite() 检测数值，非数值返回false
console.log(Number.isFinite(12.2)); //true
console.log(Number.isFinite(NaN)); //false

// Number.isNaN() NaN返回true  其它返回false
console.log(Number.isNaN(NaN)); //true

// Number.parseInt、Number.parseFloat
Number.parseInt('12.34') // 12
Number.parseFloat('123.45#') // 123.45